package com.arpa.oms.service;

import com.arpa.oms.domain.dto.OmsUnpackRuleDTO;
import com.arpa.oms.domain.entity.OmsUnpackRule;
import com.arpa.oms.domain.vo.OmsUnpackRuleVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 拆单规则 服务类
 * </p>
 *
 * @author spb
 * @since 2021-07-23
 */
public interface IOmsUnpackRuleService extends IService<OmsUnpackRule> {

    Integer listCount(OmsUnpackRuleDTO unpackRuleDTO);

    List<OmsUnpackRuleVO> listPage(OmsUnpackRuleDTO unpackRuleDTO);

    Boolean updateByCode(OmsUnpackRule unpackRule);

    boolean active(String code, String value);

    boolean unactive(String code, String value);

    Map<String, Integer> deleteByCodes(List<String> codes);

    OmsUnpackRule getDetailInfoByCode(String code);

    boolean create(OmsUnpackRule unpackRule);


}
